/**
 * 
 */
package org.cnbi.utils.pojo.indicator;

import java.math.BigDecimal;

import org.cnbi.utils.pojo.AbstractorDim;
import org.cnbi.utils.string.StringUtil;
import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * Copyright © 2014中国经邦. All rights reserved.
 * @author 龚佳新
 * @date 2014年5月10日下午5:58:44
 * @cnbi-utils
 */
public class ItemUtil extends AbstractorDim {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public String item;
	
	public String fact;
	
	private BigDecimal datas;
	
	@JsonIgnore
	private String cacheKey;
	
	public ItemUtil(){}
	
	

	/**
	 * @param item
	 */
	public ItemUtil(String item,String fact,String company, String period){
		super();
		this.item = item;
		this.company = company;
		this.period = period;
		this.fact = fact;
	}

  

	/**
	 * @return the cacheKey
	 */
	public String getCacheKey() {
		String key = item+fact+period+company;
		//key = StringUtil.getAllNumber(key);
		return key;
	}



	/**
	 * @param cacheKey the cacheKey to set
	 */
	public void setCacheKey(String cacheKey) {
		this.cacheKey = cacheKey;
	}



	/**
	 * @return the item
	 */
	public String getItem() {
		return item;
	}

	/**
	 * @param item the item to set
	 */
	public void setItem(String item) {
		this.item = item;
	}



	/**
	 * @return the fact
	 */
	public String getFact() {
		return fact;
	}



	/**
	 * @param fact the fact to set
	 */
	public void setFact(String fact) {
		this.fact = fact;
	}



	/**
	 * @return the datas
	 */
	public BigDecimal getDatas() {
		return datas;
	}



	/**
	 * @param datas the datas to set
	 */
	public void setDatas(BigDecimal datas) {
		this.datas = datas;
	}
	
	/**
	 * @return the company
	 */
	public String getCompany() {
		return company;
	}


	/**
	 * @param company the company to set
	 */
	public void setCompany(String company) {
		this.company = company;
	}


	/**
	 * @return the period
	 */
	public String getPeriod() {
		return period;
	}


	/**
	 * @param period the period to set
	 */
	public void setPeriod(String period) {
		this.period = period;
	}
	

}
